package org.kojo.tdrm.servlet.ctrl;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.JSONArray;
import org.json.JSONObject;
import org.kojo.tdrm.entity.Task;

public class BaseController extends HttpServlet {
	private String userId;
	private String jsonResp;
	private String error=null;
	@Override
	protected void service(HttpServletRequest arg0, HttpServletResponse arg1)
			throws ServletException, IOException {
		this.userId = (String)arg0.getSession().getAttribute("USERID");
		super.service(arg0, arg1);
	}
	protected String getUserId(){
		return this.userId;
	}
	public String getJsonResp(){
		return this.jsonResp;
	}
	protected void setJsonResp(String jsonResp){
		this.jsonResp = jsonResp;
	}
	public String getError(){
		return this.error;
	}
	public void setError(String error){
		this.error = error;
	}
	
}
